Reference for Wiring version 0024+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name

float()

Examples
float f = float(true);
Description Converts a primitive datatype to its floating point representation.
Syntax
float(value)
Parameters
value int, long, float, char, byte, or boolean
Returns float
Usage Application
Related float
int()
long()
char()
byte()
Updated on November 01, 2009 12:34:27pm PST

Creative Commons License